'use strict';
const Controller = require('egg').Controller;
const fs = require('fs');
const path = require('path');
var pump = require('pump')
class HomeController extends Controller {
  async index() {
    
    this.ctx.body = 'dsa';
  }
  async all() {
    let str = await this.ctx.renderView('index.html',{
      title: `<h1 style="color:red"><span id="aa">dsadas</span></h1>`
      }
    );
    this.ctx.body = str.replace(" <!-- 使用模板数据 -->", `<h1 style="color:red"><span id="aa">dsadas</span></h1>`);
  }
}

module.exports = HomeController;
